Telegram Group & Telegram Channel
BRUTE-FORCE ATTACK: CRACKING THE CAESAR CIPHER

هجوم القوة الغاشمة: سحق تشفير القيصر


يشير مصطلح البحث بالقوة الغاشمة إلى تقنية البحث الشامل في مساحة المفتاح
للحصول على نتيجة واضحة. للقيام بذلك على تشفير قيصر ، يجب أن تبدأ قيمة المفتاح بـ 1وتستمر الى
نحو القيمة 25 حتى يتم العثور على مفتاح يفك تشفير النص المشفر بنجاح إلى رسالة ذات معنى.

static string BruteForce(string cipherText, int k)
{
string Generated = "";
for (int i = 0; i < cipherText.Length; i++)
{
if (cipherText[i] != ' ')
{
char d = char.IsUpper(cipherText[i]) ? 'A' : 'a';

int character = (((cipherText[i] + 26 - d) - k) % 26) + d;
Generated+= (char)character;
}
}
return Generated;
}


كود الاستدعاء لبدء عملية كسر التشفير
string cipher = "KHOOR"; // HELLO
for (int i = 1; i <= 25; i++)
{
richTextBox2.Text += "Test Key : " + BruteForce(cipher, i) + Environment.NewLine;

}



tg-me.com/CsharpWindowsForm/454
Create:
Last Update:

BRUTE-FORCE ATTACK: CRACKING THE CAESAR CIPHER

هجوم القوة الغاشمة: سحق تشفير القيصر


يشير مصطلح البحث بالقوة الغاشمة إلى تقنية البحث الشامل في مساحة المفتاح
للحصول على نتيجة واضحة. للقيام بذلك على تشفير قيصر ، يجب أن تبدأ قيمة المفتاح بـ 1وتستمر الى
نحو القيمة 25 حتى يتم العثور على مفتاح يفك تشفير النص المشفر بنجاح إلى رسالة ذات معنى.

static string BruteForce(string cipherText, int k)
{
string Generated = "";
for (int i = 0; i < cipherText.Length; i++)
{
if (cipherText[i] != ' ')
{
char d = char.IsUpper(cipherText[i]) ? 'A' : 'a';

int character = (((cipherText[i] + 26 - d) - k) % 26) + d;
Generated+= (char)character;
}
}
return Generated;
}


كود الاستدعاء لبدء عملية كسر التشفير
string cipher = "KHOOR"; // HELLO
for (int i = 1; i <= 25; i++)
{
richTextBox2.Text += "Test Key : " + BruteForce(cipher, i) + Environment.NewLine;

}

BY برمجة تطبيقات الويندوز C# Programming


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/CsharpWindowsForm/454

View MORE
Open in Telegram


برمجة تطبيقات الويندوز C Programming Telegram | DID YOU KNOW?

Date: |

The global forecast for the Asian markets is murky following recent volatility, with crude oil prices providing support in what has been an otherwise tough month. The European markets were down and the U.S. bourses were mixed and flat and the Asian markets figure to split the difference.The TSE finished modestly lower on Friday following losses from the financial shares and property stocks.For the day, the index sank 15.09 points or 0.49 percent to finish at 3,061.35 after trading between 3,057.84 and 3,089.78. Volume was 1.39 billion shares worth 1.30 billion Singapore dollars. There were 285 decliners and 184 gainers.

What is Secret Chats of Telegram

Secret Chats are one of the service’s additional security features; it allows messages to be sent with client-to-client encryption. This setup means that, unlike regular messages, these secret messages can only be accessed from the device’s that initiated and accepted the chat. Additionally, Telegram notes that secret chats leave no trace on the company’s services and offer a self-destruct timer.

برمجة تطبيقات الويندوز C Programming from nl


Telegram برمجة تطبيقات الويندوز C# Programming
FROM USA